package top.albertiy.适配器模式.对象的适配器模式;

import top.albertiy.适配器模式.Source;
import top.albertiy.适配器模式.Targetable;

public class Wrapper implements Targetable {

    private Source source;

    public Wrapper(Source source){
        super();
        this.source = source;
    }

    @Override
    public void method1() {
        source.method1();
    }

    @Override
    public void method2() {
        System.out.println("this is the targetable method!");
    }
}
